package cn.javass.dp.decorator.mydemo1;

public abstract  class Decorator extends Component {

    private Component component;

    public Decorator(Component component) {
        this.component = component;
    }

    @Override
    public void operation() {
        System.out.println("开始做点什么");
        component.operation();
        System.out.println("结束在做点什么");


    }
}
